package top.kangyaocoding.ecommerce.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import top.kangyaocoding.ecommerce.po.DataSummary;

import java.util.List;

/**
 * 描述:
 *
 * @author K·Herbert
 * @since 2025-02-16 下午3:55
 */
@Mapper
public interface IDataSummaryDao {

    @Select("SELECT * FROM data_summary")
    @Results({
            @Result(property = "totalRecords", column = "total_records"),
            @Result(property = "totalUsers", column = "total_users"),
            @Result(property = "totalItems", column = "total_items"),
            @Result(property = "totalCategories", column = "total_categories")
    })
    List<DataSummary> findAll();
}
